# coding:UTF-8
'''
Created on 2015年3月28日

@author: Administrator
'''

from django.conf.urls import patterns, include, url

from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('forum.views',
                       # Examples:
                       # url(r'^$', 'youaiwang.views.home', name='home'),
                       # url(r'^blog/', include('blog.urls')),
                       url(r'^$', 'index'),
                       # sharing(article)
                       url(r'^sharing/(?P<articleId>\d+)/$', 'get_article'),
                       url(r'^sharing/(?P<articleId>\d+)/comment/addition/$', 'add_comment_in_sharing'),
                       url(r'^sharing/(?P<articleId>\d+)/praise/addition/$', 'add_praise_in_sharing'),
                       url(r'^sharing/(?P<articleId>\d+)/collection/addition/$', 'add_collection_in_sharing'),
                       url(r'^sharing/(?P<articleId>\d+)/comment/(?P<commentId>\d+)/receiver/(?P<receiverId>\d+)/reply/addition/$', 'add_reply_in_sharing'),
                       url(r'^sharing/addition/$', 'add_sharing'),


                       # question
                       url(r'^question/addition/$', 'add_question'),

                       url(r'^upload/', 'handle_upload'),

                       )

if __name__ == '__main__':
    pass
